<?php
	//logout;
	session_start();
	
	//clear all session variables
	unset($_SESSION['UserID']);
	unset($_SESSION['UserName']);
	unset($_SESSION['UserRol']);
	
	//destroy session
	session_destroy();
	
	//redirect to index
	header('Location: ../index.php');
?>